import 'package:flutter/material.dart';
import 'package:nylo_framework/nylo_framework.dart';
import 'package:lottie/lottie.dart';

class LottieAnimation extends StatefulWidget {
  final String url;

  const LottieAnimation({super.key, required this.url});

  @override
  createState() => _LottieAnimationState();
}

class _LottieAnimationState extends NyState<LottieAnimation> {
  @override
  get init => () {};

  @override
  Widget view(BuildContext context) {
    return Container(
      child: Lottie.asset(widget.url),
    );
  }
}
